﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BirthdayNote
{
    /// <summary>
    /// 是否修改生日会选择日期 消息框
    /// 代码编写：黄祯
    /// </summary>
    public partial class ChangeDay : Form
    {
        public ChangeDay(DateTime change)
        {
            InitializeComponent();
            label1.Text += change.ToString("D") + " ？";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Yes;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.No;
            this.Close();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.DialogResult= DialogResult.Cancel;
            this.Close();
        }
    }
}
